<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/header.jsp" %>

        <h1>Account List</h1>
		<div id="account_list"></div>
		<div id="account_form">
			<table border="0">
                <tbody>
					<tr>
						<td colspan="2">Account Form:
							<input type="hidden" id="account_form_action" value="add" />
							<input type="hidden" id="account_form_id" value="" />
						</td>
					</tr>
					<tr>
						<td>Email:</td>
						<td><input type="text" id="account_form_email" value="" /></td>
					</tr>
					<tr>
						<td>First Name:</td>
						<td><input type="text" id="account_form_fname" value="" /></td>
					</tr>
                                        <tr>
						<td>Last Name:</td>
						<td><input type="text" id="account_form_lname" value="" /></td>
					</tr>
                                        <tr>
						<td>Zip:</td>
						<td><input type="text" id="account_form_zip" value="" /></td>
					</tr>
                                        <tr>
						<td>Gender:</td>
						<td><input type="text" id="account_form_gender" value="" /></td>
					</tr>
                    <tr>
                        <!--<td>Role:</td>
                        <td>
                            <select id="account_form_role">
                                <//c:forEach var="ritem" items="$//{roles}">
                                    <option value="$//{ritem.id}">$//{ritem.roleValue}</option>
                                <//c:forEach>
                            </select>
                        </td>
                        -->
                        <td colspan="2">
                            <div id="roles_list"></div>
                        </td>    
                    </tr>
					<tr>
						<td colspan="2">
							<input type="submit" id="account_form_send" value="Send" />
						</td>
					</tr>
				</tbody>
			</table>

			
		</div>
		
		
	<script type="text/javascript">
		
		$(document).ready(function(){
			var accountModel = new AccountModel();
			var accountView = new AccountView(accountModel);
			var accountController = new AccountController(accountModel, accountView);
			accountController.init();
		});
	</script>
    
<%@ include file="/WEB-INF/jsp/footer.jsp" %>